<!DOCTYPE html>
<!--
	来源： https://www.zhangxinxu.com/wordpress/2019/08/css-flex-last-align/
-->
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.container {
				display: flex;
				justify-content: space-between;
				flex-wrap: wrap;
				margin-right: -10px;
			}
			
			.list {
				width: 100px;
				height: 100px;
				background-color: skyblue;
				margin: 15px 10px 0 0;
			}
			
			/* 和列表一样的宽度和margin值 */
			.container>i {
				width: 100px;
				margin-right: 10px;
			}
		</style>
	</head>

	<body>
		<div class="container">
			<div class="list"></div>
			<div class="list"></div>
			<div class="list"></div>
			<div class="list"></div>
			<div class="list"></div>
			<div class="list"></div>
			<div class="list"></div>
			<i></i><i></i><i></i><i></i><i></i>
		</div>
	</body>

</html>